package net.starelement.gamelib.player;


import cn.nukkit.Player;

import java.util.ArrayList;

/**  StarElement Listener 单例模式的玩家集合类
 *
 * @author Ruok233
 * @since NukkitX API 1.0.9 | StarElement Project v1-alpaca
 *
 * cerate: 2019/12/12
 */
public class PlayerList extends GamePlayerList{

    public static PlayerList obj = new PlayerList();

    private ArrayList<Player> list = new ArrayList();

    //单例模式  私有化构造方法
    private PlayerList() {}

    //单例模式
    public static PlayerList getInstance() {
        return obj;
    }

}
